raar.register
Class RAList

java.lang.Object
  extended by raar.register.RAList
All Implemented Interfaces:
java.io.Serializable, RAAbstractList, RAAssignable, RAEqualityComparable, RAAllowed, RADataType

public class RAList
extends java.lang.Object
implements RAAssignable, RADataType, RAEqualityComparable, RAAbstractList

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface raar.register.RADataType
RA_LIST, RA_REAL, RA_STRING, RA_TYPE
 
Constructor Summary
RAList()
           
RAList(RANonElemDataType typeOfList)
          Constructor, with a DataType that defines the content of a list.
 
Method Summary
 void add(RAAllowedInList newValue)
          Adds an element to the list.
 boolean canContain(RAAllowed other)
           
 void clear()
          Clears the list.
 java.lang.Object clone()
           
 boolean equals(RAEqualityComparable otherElement)
           
 int getType()
           
 boolean hasMoreElements()
          Tests if this list's nextElement method can be called again.
 RAAllowed makeClone()
           
 RAAllowedInList nextElement()
          Returns the next element in this list or null if it doesn't exist.
 void resetIteration()
          This method resets the list's iterator, which means nextElement will start at the beginning of the list again.
 void set(RAAllowedInList newValue)
          Sets the last element returned by nextElement.
 boolean structureEquals(RADataType newInput)
          Checks the correctnes of the string-to-add, test tegen TypeOfList
 java.lang.String toString()
           
 RANonElemDataType typeOfList()
           
 RADataType value()
           
 java.util.Vector values()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RAList

public RAList()

RAList

public RAList(RANonElemDataType typeOfList)
Constructor, with a DataType that defines the content of a list.

Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in interface RADataType
Overrides:
clone in class java.lang.Object

values

public java.util.Vector values()

makeClone

public RAAllowed makeClone()
                    throws RAException
Specified by:
makeClone in interface RAAllowed
Throws:
RAException

typeOfList

public RANonElemDataType typeOfList()
Specified by:
typeOfList in interface RAAbstractList

value

public RADataType value()
                 throws RAException
Specified by:
value in interface RAAssignable
Throws:
RAException

add

public void add(RAAllowedInList newValue)
         throws RAException
Adds an element to the list.

Specified by:
add in interface RAAbstractList
Parameters:
newValue - The value to add.
Throws:
RAException

structureEquals

public boolean structureEquals(RADataType newInput)
Checks the correctnes of the string-to-add, test tegen TypeOfList

Parameters:
s - String with the values

canContain

public boolean canContain(RAAllowed other)
Specified by:
canContain in interface RAAllowed

set

public void set(RAAllowedInList newValue)
         throws RAException
Sets the last element returned by nextElement.

Specified by:
set in interface RAAbstractList
Parameters:
newValue - The new value of this element
Throws:
RAException

clear

public void clear()
           throws RAException
Clears the list.

Specified by:
clear in interface RAAbstractList
Throws:
RAException

nextElement

public RAAllowedInList nextElement()
                            throws RAException
Returns the next element in this list or null if it doesn't exist.

Specified by:
nextElement in interface RAAbstractList
Returns:
The next element in this list.
Throws:
RAException

hasMoreElements

public boolean hasMoreElements()
                        throws RAException
Tests if this list's nextElement method can be called again.

Specified by:
hasMoreElements in interface RAAbstractList
Returns:
True if nextElement() can be called, false otherwise.
Throws:
RAException

resetIteration

public void resetIteration()
                    throws RAException
This method resets the list's iterator, which means nextElement will start at the beginning of the list again.

Specified by:
resetIteration in interface RAAbstractList
Throws:
RAException

getType

public int getType()
Specified by:
getType in interface RADataType

equals

public boolean equals(RAEqualityComparable otherElement)
               throws RAException
Specified by:
equals in interface RAEqualityComparable
Throws:
RAException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object